import java.util.Arrays;

public class Main {
    public static void main(String[] args) {
        int[] arr={1,2,3,4,5};
        int[] copy= Arrays.copyOf(arr, arr.length);//拷贝数组zhangxioaokanb
        System.out.println(Arrays.toString(copy));
    }
}